<template>
	<view style="display: flex;flex-direction: column;width: 100%;height: 100%;position: relative;padding-top: 20rpx;">
		<uni-list style="padding:0 2%;box-sizing: border-box;padding-bottom: 40rpx;" :border="false"
			v-if="dataList.length">
			<view class="bg_fff mb-20 itemBox" v-for="(dataItem, index) in dataList" :key="index">
				<view class="pd-20 display_row_btn_center" style="padding-right: 0;">
					<view class="itemBaseBox">
						<u-image :src="dataItem.image" width="100rpx" height="100rpx"></u-image>
						<view class="itemBase f_24">
							<text class="c_333333 title">{{dataItem.nickname||""}}</text>
							<view class="c_333333 mt-8">媒体平台：<text
									class="c_C62B2C f_28">{{dataItem.ppname||'’'}}</text>
							</view>
							<view class="c_333333 mt-8">回填时间：<text class="c_C62B2C f_28">{{dataItem.create_at||""}}</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</uni-list>
	</view>
</template>

<script>
	import {
		getMissionDetail,
		getFeedBackList
	} from '@/config/api.js'

	export default {
		data() {
			return {
				mission_id: "",
				keyword_id: "",
				mission: null,
				user: null,
				dataList: []
			};
		},
		onLoad(op) {
			this.mission_id = op.mission_id;
			this.keyword_id = op.keyword_id;
			this.user = uni.getStorageSync('UserInfo');
			this.getData();
		},
		methods: {
			getData() {
				// getMissionDetail({
				// 	id: this.mission_id,
				// 	user_id: this.user ? this.user.id : ""
				// }).then(res => {
				// 	this.mission = res
				// }).catch(err => {

				// })

				getFeedBackList({
					keyword_id: this.keyword_id
				}).then(res => {
					this.dataList = res;
				}).catch(err => {

				})

			}
		}
	}
</script>

<style scoped>
	.itemBox {
		width: 100%;
		border-radius: 20rpx;
	}

	.itemBaseBox {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		flex: 6;
	}

	.itemBase {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		margin-left: 20rpx;
	}

	.title {
		font-size: 36rpx;
		font-weight: 600;
	}

	.status {
		border: 1px solid #C62B2C;
		border-radius: 10rpx;
		padding: 10rpx;
	}
</style>
